package com.sp.po;
// default package

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Staff entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Staff  implements java.io.Serializable {


    // Fields    

     private Integer staffId;
     private String staffName;
     private String loginName;
     private String loginPwd;
     private String relateNbr;
     private String relateMail;
     private Timestamp hireDate;
     private Timestamp buildDate;
     private String realteTel;
     private Integer stateId;
     private String note;
     private Integer staffMale;
     private Integer degreeId;
     private Integer deptId;
     private Integer buildstaffId;
     private Set<Role> role_staff = new HashSet<Role>(0);


    // Constructors

    /** default constructor */
    public Staff() {
    }

	/** minimal constructor */
    public Staff(String staffName, String loginName, String loginPwd, String relateNbr, Integer stateId) {
        this.staffName = staffName;
        this.loginName = loginName;
        this.loginPwd = loginPwd;
        this.relateNbr = relateNbr;
        this.stateId = stateId;
    }

	/** full constructor */
    public Staff(Integer staffId, String staffName, String loginName,
			String loginPwd, String relateNbr, String relateMail,
			Timestamp hireDate, Timestamp buildDate, String realteTel,
			Integer stateId, String note, Integer staffMale, Integer degreeId,
			Integer deptId, Integer buildstaffId, Set<Role> roleStaff) {
		super();
		this.staffId = staffId;
		this.staffName = staffName;
		this.loginName = loginName;
		this.loginPwd = loginPwd;
		this.relateNbr = relateNbr;
		this.relateMail = relateMail;
		this.hireDate = hireDate;
		this.buildDate = buildDate;
		this.realteTel = realteTel;
		this.stateId = stateId;
		this.note = note;
		this.staffMale = staffMale;
		this.degreeId = degreeId;
		this.deptId = deptId;
		this.buildstaffId = buildstaffId;
		role_staff = roleStaff;
	}
   
    // Property accessors

    public Integer getStaffId() {
        return this.staffId;
    }
    
    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return this.staffName;
    }
    
    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getLoginName() {
        return this.loginName;
    }
    
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return this.loginPwd;
    }
    
    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getRelateNbr() {
        return this.relateNbr;
    }
    
    public void setRelateNbr(String relateNbr) {
        this.relateNbr = relateNbr;
    }

    public String getRelateMail() {
        return this.relateMail;
    }
    
    public void setRelateMail(String relateMail) {
        this.relateMail = relateMail;
    }

    public Timestamp getHireDate() {
        return this.hireDate;
    }
    
    public void setHireDate(Timestamp hireDate) {
        this.hireDate = hireDate;
    }

    public Timestamp getBuildDate() {
        return this.buildDate;
    }
    
    public void setBuildDate(Timestamp buildDate) {
        this.buildDate = buildDate;
    }

    public String getRealteTel() {
        return this.realteTel;
    }
    
    public void setRealteTel(String realteTel) {
        this.realteTel = realteTel;
    }

    public Integer getStateId() {
        return this.stateId;
    }
    
    public void setStateId(Integer stateId) {
        this.stateId = stateId;
    }

    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }

    public Integer getStaffMale() {
        return this.staffMale;
    }
    
    public void setStaffMale(Integer staffMale) {
        this.staffMale = staffMale;
    }

    public Integer getDegreeId() {
        return this.degreeId;
    }
    
    public void setDegreeId(Integer degreeId) {
        this.degreeId = degreeId;
    }

    public Integer getDeptId() {
        return this.deptId;
    }
    
    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getBuildstaffId() {
        return this.buildstaffId;
    }
    
    public void setBuildstaffId(Integer buildstaffId) {
        this.buildstaffId = buildstaffId;
    }

	public Set<Role> getRole_staff() {
		return role_staff;
	}

	public void setRole_staff(Set<Role> roleStaff) {
		role_staff = roleStaff;
	}
}